<? $this->load->view('header'); ?>
<?php $v =& $this->validation ?>

	<h2>Edit listing</h2>	
	
	<div class="form_error">
		<?=$v->error_string?>
	</div>

	<?=form_open('manage/edit/'.$data->site_id)?>
		<p><label for="name">* Name: </label><input type="text" name="name" value="<?=($v->name) ? $v->name : $data->name?>" id="name" class="<?=$v->name_error?>" /></p>
		<p><label for="site_url">* Site Url: </label><input type="text" name="site_url" value="<?=($v->site_url) ? $v->site_url : $data->site_url?>" id="site_url" class="<?=$v->site_url_error?>" /></p>
		<p><label for="feed_url">* Feed URL: </label><input type="text" name="feed_url" value="<?=($v->feed_url) ? $v->feed_url : $data->feed_url?>" id="feed_url" class="<?=$v->feed_url_error?>" /></p>
		<p><button type="submit">Add</button></p>
	</form>
	<? $this->load->view('footer'); ?>